def check_status(status_code):
    if (status_code == 250):
        status = '待申样'
    elif (status_code == 500):
        status = '合作中'
    elif (status_code == 200):
        status = '待建联'
    elif (status_code == 400):
        status = '待出单'
    elif (status_code == 300):
        status = '寄样中'
    elif (status_code == 2):
        status = '已交付'
    elif (status_code == 1):
        status = '未开始'
    elif (status_code == 3):
        status = '逾期未交付'
    else:
        status = ""
    return status


def check_logistics_status(status_code):
    """status	string	否	总状态：1：已完成、2：已取消、3:待寄样、4、待签收   5、已签收、6、待审核、10：样品回收"""
    if (status_code == 1):
        status = '已完成'
    elif (status_code == 2):
        status = '已取消'
    elif (status_code == 3):
        status = '待寄样'
    elif (status_code == 4):
        status = '待签收'
    elif (status_code == 5):
        status = '已签收'
    elif (status_code == 6):
        status = '待审核'
    else:
        status = "样品回收"
    return status
def check_cp_order_status(status_code):
    """status	string	否	总状态：0:全部；2:已取消；3:交付中；4:待交付；7:已结束"""
    if (status_code == 0):
        status = '全部'
    elif (status_code == 2):
        status = '已取消'
    elif (status_code == 3):
        status = '交付中'
    elif (status_code == 4):
        status = '待交付'
    else:
        status = "已结束"
    return status
